// swiper.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    pageConfig: {
      title: 'Swiper',
      desc: 'swiper练习swiper练习swiper练习swiper练习swiper练习swiper练习swiper练习'
    },

    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    indicatorDots: true,
    aotuplay: true,
    duration: 600,
    interval: 1000,
    dotshow: true,
    circular: true,
  },
  changedotshow: function () {
    this.setData({
      dotshow: !this.data.dotshow
    })
  },
  changeaotuPlay: function () {
    this.setData({
      aotuplay: !this.data.aotuplay
    })
  },
  changeCircular: function () {
    this.setData({
      circular: !this.data.circular
    })
  },
  changeautoTime:function(e){
    this.setData({
      duration: e.detail.value
    })
  },
  changeInterval:function(e){
    this.setData({
      interval: e.detail.value
    })
  }
})